package polymorphic;

/**
 * @ClassName Cat
 * @Description TODO
 * @Author hp
 * @Date 2021/6/15 16:37
 * @Version 1.0
 **/
public class Cat extends Animals {
    @Override
    public void eat() {
        System.out.println("沙丁鱼罐头");
    }

    @Override
    public void sleep() {
        System.out.println("躺着睡觉");
    }
    public void catchMouse(){
        System.out.println("猫抓老鼠");
    }
}
